<?php

namespace App\Models;

use App\Observers\Apiuesrobserver;

use Illuminate\Foundation\Auth\User as AuthUser;
use Laravel\Passport\HasApiTokens;

class Apiuser extends AuthUser
{
    //设置auth验证
    use HasApiTokens;
    //拒绝不添加的字段
    protected $guarded =[];
    //使用观察模型
    protected static function boot()
    {
        parent::boot(); // 初始化
        self::observe(Apiuesrobserver::class);
    }
}
